package cn.com.mapper;

import cn.com.beans.AccountInfo;
import cn.com.beans.PAccount;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface PAccountMapper {

    PAccount findById(Integer id);

    int insertAccount(PAccount account);

    int updateAcount(PAccount account);

    int deleteByIds(@Param("ids") Integer... ids);

    List<PAccount> findAll(PAccount account);

    PAccount findByAccount(@Param("account") String account,@Param("password") String password);



//    下面是之前凌超龙的

    List<PAccount> selectByPhone(String phone);

    List<PAccount> selectByPhoneAndPwd(PAccount pAccount);

    int insert(PAccount accountInfo);

    PAccount selectByPrimaryKey(Integer aId);

    int updateByPrimaryKey(PAccount pAccount);

}